Skip to content

Updates to migration backends #750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 7, 2025
Merged

Updates to migration backends #750

merged 2 commits into from
Mar 7, 2025

Conversation

tathougies
Copy link
Collaborator

@tathougies tathougies commented Mar 6, 2025

After several years, I've finally started working on a tool for beam migrations. I'll start a new repository for my tool, but there are some pieces missing from upstream beam that would be necessary for any migrations tool.

The key change here is adding a function to each backend to execute arbitrary SQL. This is necessary for any tool that allows running arbitrary migration scripts stored as backend-specific SQL.

The other major change is proper support for backend-agnostic transactions and proper connection handling.

All these changes are necessary for any migrations frontend, not just my tool.

@LaurentRDC
Copy link
Member

That is a very good idea. At work we use dbmate, but it would be cool to be able to transition slowly from hand-written SQL migration scripts to the ORM.

@tathougies tathougies merged commit 17ea69c into master Mar 7, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants